<template>
  <modal :headerEnable="false" ref="modal" height="auto" width="500px" :coverEnable="false" marginTop="40px">
    <div class="message" :type="options.type">
      {{options.message}}
    </div>
  </modal>
</template>
<script>
import Modal from '@/components/common/Modal'
export default {
  data () { return { options: {} } },
  components: { Modal },
  methods: {
    message (options) {
      this.options = options
      this.$refs.modal.show()
    }
  }
}
</script>
